<?php

/**
 * This is a simple example how to add a job into scheduler
 **/

// include necessary files
include_once(dirname(__FILE__).'/schedulerConfig.php');
include_once(dirname(__FILE__).'/schedulerJob.php');
include_once(dirname(__FILE__).'/scheduler.php');

// create job
$SchedulerJob = new SchedulerJob;
$SchedulerJob->Message = "Hello World, ".date("H:i:s")."\n";

// add job into scheduler
$Scheduler = new Scheduler;
$Scheduler->Add($SchedulerJob);

// done, check the table "scheduler"
// there is should be a new record have been added

